<?php
if(!defined('MY_ROOT'))
{throw new Exception('Access Denied');}
if($_G['uid']<1)
{
header('Location: member.php?mod=login');
}
$extra=&$_G['usercfg'];
switch($_POST['type'])
{
case 'name':
$extra['name']=$_POST['content'];
break;
case 'address':
$extra['address']=$_POST['address'];
break;
case 'phone':
$extra['phone']=$_POST['phone'];
break;
case 'contact':
$extra['contact']=$_POST['contact'];
break;
default:
}
$member=$_G['hwnd']['member'];
$member->update($extra);
$smarty=$_G['hwnd']['smarty'];
showmessage('');
?>
